﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Model
{
    #region 发送文本消息参数
    /// <summary>
    /// 发送文本消息
    /// </summary>
    public class wx_message_text
    {
        public wx_message_text()
        {
            text = new wx_message_text_content();
        }
        public string touser { get; set; }
        private string _msgtype = "text";
        /// <summary>
        /// 值为 text
        /// </summary>
        public string msgtype { get { return _msgtype; } }
        public wx_message_text_content text { get; set; }
    }

    public class wx_message_text_content
    {
        /// <summary>
        /// 消息内容
        /// </summary>
        public string content { get; set; }
    }
    #endregion


    #region 发送模版信息(审核提醒)

    /// <summary>
    /// 审核提醒
    /// </summary>
    public class wx_message_template_review
    {
        public wx_message_template_review()
        {
            data = new template_content_review();
        }
        public string url { get; set; }
        public string touser { get; set; }
        private string _template_id = "nyZ9a7SdizP_ciFYLqXzdVEz__nFT8DCk8m4M2ZgZoo";
        /// <summary>
        /// 值为 text
        /// </summary>
        public string template_id { get { return _template_id; } }
        public template_content_review data { get; set; }
    }
    public class template_content_review
    {
        public template_content_review()
        {
            first = new value_color();
            keyword1 = new value_color();
            keyword2 = new value_color();
            keyword3 = new value_color();
            keyword4 = new value_color();
            remark = new value_color();
        }
        public value_color first { get; set; }
        /// <summary>
        /// 消息类别：
        /// </summary>
        public value_color keyword1 { get; set; }
        /// <summary>
        /// 通知用户：
        /// </summary>
        public value_color keyword2 { get; set; }
        /// <summary>
        /// 通知内容：
        /// </summary>
        public value_color keyword3 { get; set; }
        /// <summary>
        /// 通知时间：
        /// </summary>
        public value_color keyword4 { get; set; }
        public value_color remark { get; set; }
    }
    public class value_color
    {
        public string value { get; set; }

        private string _color = "#173177";
        /// <summary>
        /// 默认#173177
        /// </summary>
        public string color { get { return _color; } set { this.value = value; } }
    }
    #endregion

    #region 发送模版信息(积分提醒)
    /// <summary>
    /// 积分提醒
    /// </summary>
    public class wx_message_template_score
    {
        public wx_message_template_score()
        {
            data = new template_content_score();
        }
        public string url { get; set; }
        public string touser { get; set; }
        private string _template_id = "juqxirbJ7F0JqTJfNPk5Pcs6WMd1jd3OAHpfLdFRj2c";
        /// <summary>
        /// 值为 text
        /// </summary>
        public string template_id { get { return _template_id; } }
        public template_content_score data { get; set; }
    }

    public class template_content_score
    {
        public template_content_score()
        {
            first = new value_color();
            keyword1 = new value_color();
            keyword2 = new value_color();
            remark = new value_color();
        }
        public value_color first { get; set; }
        /// <summary>
        /// 获得积分：
        /// </summary>
        public value_color keyword1 { get; set; }
        /// <summary>
        /// 时间：
        /// </summary>
        public value_color keyword2 { get; set; }
        public value_color remark { get; set; }
    }
    #endregion
}
